Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added the catch of wrong content-type returning meaningful message #714

Merged
merged 2 commits into from
Nov 24, 2022

Conversation

ppatierno
Copy link
Member

This PR fixes #598
The bridge is now handling requests on sending messages which come with a bad content-type and returning a more meaningful error like the following:

{
   "error_code":400,
   "message":"[Bad Request] Cannot find body processor for content type application/x-www-form-urlencoded"
}

Added test for the above use case

Signed-off-by: Paolo Patierno <ppatierno@live.com>
@ppatierno ppatierno added this to the 0.23.0 milestone Nov 24, 2022
@ppatierno ppatierno requested a review from a team November 24, 2022 13:51
Signed-off-by: Paolo Patierno <ppatierno@live.com>
@ppatierno
Copy link
Member Author

Travis seems to have problem setting up environment for s390 architecture. Going to merge this.

@ppatierno ppatierno merged commit c3b30d9 into strimzi:main Nov 24, 2022
@ppatierno ppatierno deleted the fix-wrong-content-type-handling branch November 24, 2022 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bridge raising access denied exception when missing content-type in the request
3 participants